package com.neuedu.corejava.ch4.practise;

public class MulArray22 {

	public static void main(String[] args) {
		// 多维数组的初始化和遍历输出
		int[][] arr = {{1},{4,5,6},{7,8}};
		int[][] a = new int[3][];
		
		a[0] = new int[1];
		a[1] = new int[3];
		a[2] = new int[2];
		
		a[0][0]=1;
		a[1][0]=4;
		a[1][1]=5;
		a[1][2]=6;
		a[2][0]=7;
		a[2][1]=8;

		for (int i = 0; i < a.length; i++) {
			for (int j = 0; j < a[i].length; j++) {
				System.out.print(a[i][j] + " ");
			}
			System.out.println();
		}

	}

}
